﻿@{
    Layout = "~/Areas/en/Views/Shared/_LayoutPage1.cshtml";
}

<div class="row" ng-controller="trackingController" ng-init="getAreas();">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <div class="x_title">
                <h2>Tracking <small> Pallet Activity </small></h2>

                <div class="clearfix"></div>
            </div>
            <div class="x_content">
                <form id="demo-form2" data-parsley-validate class="form-horizontal form-label-left">

                    <div class="form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">
                            Day(s)
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input type="number" class="form-control col-md-7 col-xs-12" ng-model="search.DAY" />
                                
                        </div>
                    </div>



                    <div class="form-group">
                        <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                            <button type="button" ng-click="getPalletActivity()" class="btn btn-success">Search</button>
                        </div>
                    </div>
                    <div class="ln_solid"></div>

                </form>
                <br />
                <div class="datatable" style="display:none">
                    <table id="datatable" class="table table-striped table-bordered">
                        <thead>
                            <tr>
                                <th>Read Date/Time</th>
                                <th>RFID</th>
                                <th>Barcode</th>
                                <th>Type</th>
                                <th>Style</th>
                                <th>Area</th>
                            </tr>
                        </thead>


                        <tbody>
                            <tr ng-repeat="pallet in pallets">
                                <td>{{ pallet.READTIME }}{{ pallet.DAYS }}</td>
                                <td>{{ pallet.RFID }}</td>
                                <td>{{ pallet.BARCODE }}</td>
                                <td>{{ pallet.TYPE }}</td>
                                <td>{{ pallet.STYLE }}</td>
                                <td>{{ pallet.AREA }}</td>

                            </tr>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>


